import Vue from 'vue'
import VueRouter from 'vue-router'

import RecentMsg from '@/views/RecentMsg'
import MyFriends from '@/views/MyFriends'

Vue.use(VueRouter)

const routes = [
  {
    name: "recent",
    path: '/recent',
    component: RecentMsg
  },
  {
    name: "friends",
    path: "/friends",
    component: MyFriends
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
